import request from '../axios/http'

//获取当前设置
export const banner = params => {
    return request({
        url:'/api/banner',
        method:'get',
        params
    })
}

//获取所有banner
export const bannerList = params => {
    return request({
        url:'/banner/list',
        method:'get',
        params
    })
}

//创建新轮播图
export const create = params => {
    return request({
        url:'/banner/insert',
        method:'post',
        data:params
    })
}

//修改状态
export const updateStatus = params => {
    return request({
        url:'/banner/updateStatus',
        method:'post',
        data:params
    })
}

//删除
export const del = params => {
    return request({
        url:'/banner/delete',
        method:'post',
        data:params
    })
}

//编辑
export const edit = params => {
    return request({
        url:'/banner/edit',
        method:'post',
        data:params
    })
}